FROM node:16
WORKDIR /app
COPY ./dist/apps/kyc-service .
ADD package.json yarn.lock .yarnrc.yml ./
COPY .yarn/ ./.yarn/
ENV PORT=3333
EXPOSE ${PORT}
RUN yarn workspaces focus --production --all

# ENTRYPOINT [ "/sbin/tini", "--", "./docker-entrypoint.sh" ]

# dependencies that express needs
#RUN npm install reflect-metadata tslib rxjs express
CMD node ./main.js